<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<button type="button" @click="changBool">切换</button>
			<div style="display: none;">
				
			</div>
			<div  v-if="bool">
				这是一条数据
			</div>
			
		</div>
		<script src="./node_modules/vue/dist/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let app=new Vue({
				el:'#app',
				data:{
					bool:false
				},
				methods:{
					changBool(){
						let bool=this.$data.bool
						return this.$data.bool=!bool;
					}
				}
				
			}
			);
		</script>
	</body>
</html>
